for i in range(5):
    score = eval(input())
    if 80 <= score <= 100 :
        print("优")
    elif 60 <= score < 80 :
        print("良")
    else :
        print("差")
else:
    print("结束")